package com.yu.waterstation.common.entity.system;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@ApiModel("后台登录日志")
@Data
@TableName("sys_login_log")
public class LoginLog implements Serializable {
	private static final long serialVersionUID = 1L;

    @TableId
    private Long id;

    private String username;

    @ApiModelProperty("登录的ip地址")
    private String ip;

    @ApiModelProperty("操作系统名称")
    private String osName;

    @ApiModelProperty("游览器名称")
    private String browserName;

    @ApiModelProperty("是否登录成功")
    private boolean success;

    @ApiModelProperty("时间")
    private Date timestamp;


}
